import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()

export const orderManageRouter = {
    name:'OrderManage',
    component: () => import('@/components/MenuPage/MenuPage.vue'),
    path:'OrderManage',
    meta:{
      title:t('router.purchase.orderManage'),
      alwaysShow:true
    },
    children:[
      {
        path: '/PurchaseOrder',
        component: () =>
          import(
            '@/views/SupplyChain/Purchase/OrderManage/PurchaseOrder.vue'
          ),
        name: 'PurchaseOrder',
        meta: {
          title: t('router.purchase.purchaseOrder')
        }
      },
      {
        path: '/PurchaseOrderList',
        component: () =>
          import('@/views/SupplyChain/Purchase/OrderManage/PurchaseOrderList.vue'),
        name: 'PurchaseOrderList',
        meta: {
          title: t('router.purchase.purchaseOrderList')
        }
      },
      {
        path: '/PurchaseOrderChange',
        component: () =>
          import('@/views/SupplyChain/Purchase/OrderManage/PurchaseOrderChange.vue'),
        name: 'PurchaseOrderChange',
        meta: {
          title: t('router.purchase.purchaseOrderChange')
        }
      },
      {
        path: '/PurchaseOrderChangeList',
        component: () =>
          import('@/views/SupplyChain/Purchase/OrderManage/PurchaseOrderChangeList.vue'),
        name: 'PurchaseOrderChangeList',
        meta: {
          title: t('router.purchase.purchaseOrderChangeList')
        }
      },
      {
        path: '/PurchaseOrderNewChangeList',
        component: () =>
          import('@/views/SupplyChain/Purchase/OrderManage/PurchaseOrderNewChangeList.vue'),
        name: 'PurchaseOrderNewChangeList',
        meta: {
          title: t('router.purchase.purchaseOrderNewChangeList')
        }
      },
      {
        path: '/QuotaOrdering',
        component: () =>
          import('@/views/SupplyChain/Purchase/OrderManage/QuotaOrdering.vue'),
        name: 'QuotaOrdering',
        meta: {
          title: t('router.purchase.quotaOrdering')
        }
      }
    ]
  }